package com;

import com.dao.UserDao;
import com.entity.Book;
import com.entity.User;
import com.reflect.ApplicationContext;
import com.service.BookService;
import com.service.UserService;

public class BootStrap {
    //启动类
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ApplicationContext();
        applicationContext.initContextByAnnotation();
       UserService userService=(UserService) applicationContext.getBean(UserService.class);
        userService.regist();
       // bookService.borrow(user,book);

    }
}
